package com.hsd.znsh.service;

import com.hsd.znsh.entity.Product;
import com.hsd.znsh.entity.User;
import com.hsd.znsh.pojo.output.ProductVO;
import com.hsd.znsh.pojo.query.ProductQuery;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ProductService extends BaseService {

    long getProductListTotalPages(ProductQuery productQuery,Integer userId);

    List<ProductVO> getProductList(Pageable pageable, ProductQuery productQuery,Integer userId);

    ProductVO getProductInfo(Integer id);

    Product addProduct(Product product,MultipartFile multipartFile);

    Product updateProduct(Product product,MultipartFile multipartFile);

    void deleteProduct(Integer id);

    List<Product> getProductListByAPPUser(User user);

}
